less-than-or-greater-than
Type
operator
Summary
Compares two values and returns true if they are not equal, false if they are equal.
Syntax
<value1> <> <value2>
Description
Use the <> (inequality) operator to compare two numbers or to compare two strings.
When comparing strings, the <> operator compares the two values character by character, using the ASCII value of each character. If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before lowercase letters, so "A" <> "a". If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is considered equivalent to "A".
Parameters
Name | Type | Description |
---|---|---|
value1 | The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources of value. : | |
value2 |
Examples
3 + 2 <> 6
"abc" <> "abd"
field "Old Password" <> field "Password"
Related
glossary: property, operator, case-sensitive, value, return, string
operator: contains, equals, less than, greater-than
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile